wpf label text in center

421

wpf label text in center -

<Label HorizontalContentAlignment="Center"/>

set text in center wpf -

<Button  Height="23" HorizontalAlignment="Left" Margin="190,115,0,0" Name="MyButton" VerticalAlignment="Top" Width="75" HorizontalContentAlignment="Stretch">
    <TextBlock Text="Shahin" TextAlignment="Center" />
</Button >

Comments

Submit
0 Comments